﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CUMTConnect
{
	class RunOneCheck
	{
		static System.Threading.Mutex mutex;
		/**
		 * Check whether just run one app
		 */
		public static bool CheckWhetherRunOne()
		{
			mutex = new System.Threading.Mutex(true, "RunOne");
			if(mutex.WaitOne(0, false))
			{
				return true;
			}
			else
			{
				return false;
			}
		}
	}
}
